package com.teach;

import com.teach.utils.LotteryUtils;
import com.teach.utils.RedisUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableDiscoveryClient
public class CourseSecationApplication {
    public static void main(String[] args) {
        SpringApplication.run(CourseSecationApplication.class);
    }

    @Bean
    public RedisUtils redisUtils(){
        return new RedisUtils();
    }
    @Bean
    public LotteryUtils lotteryUtils(){
        return new LotteryUtils();
    }
}
